package com.mcc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.Date;

/**
 * 启动程序
 *
 * @author gxy
 */
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        org.activiti.spring.boot.SecurityAutoConfiguration.class})
@EnableScheduling
public class MccApplication{
    public static void main(String[] args) {
        Date startDt = new Date();
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication springApplication = new SpringApplication(MccApplication.class);
        springApplication.setBannerMode(Banner.Mode.OFF);
        springApplication.run(args);
        Date endDt = new Date();
        long startUpTime = endDt.getTime() - startDt.getTime();
        System.out.println("启动成功，耗时：" + startUpTime + "ms");
    }
}
